<form method="post">
<table style="float:right;margin:2px;" cellpadding="2px" cellspacing="2px">
	<tr>
		<td>Provinsi </td><td> : </td><td>
			<select name="provinsi" style="width: 200px" onchange="load_options(this.value, 'kabkota');">
				<option value=""> -- Pilih Provinsi --</option>
				<?php foreach ($rpropinsi as $row) { ?>
					<option value="<?php echo $row->kd_propinsi; ?>"> <?php echo $row->nama_propinsi; ?> </option>
				<?php } ?>
			</select>
		</td>
		<td>Kegiatan </td><td> : </td><td>
			<select name="kegiatan" style="width: 200px" onchange="load_options(this.value, 'output');">
				<option value=""> -- Pilih Kegiatan --</option>
				<?php foreach ($rkegiatan as $row) { ?>
					<option value="<?php echo $row->kd_kegiatan; ?>"> <?php echo $row->nama_kegiatan; ?> </option>
				<?php } ?>
			</select>
		</td>
	</tr>
	<tr>
		<td>Kab/Kota </td><td> : </td><td>
			<select name="kabkota" id="kabkota" style="width: 200px">
				<option value=""> -- Pilih Kabkota --</option>
			</select>
		</td>
		<td>Output </td><td> : </td><td>
			<select name="output" id="output" style="width: 200px">
				<option value=""> -- Pilih Output --</option>
			</select>
		</td>
	</tr>
	<tr>
		<td>Tahun</td><td> : </td><td>
			<select name="tahun">
				<option value="">-- Pilih Tahun --</option>
				<option value="2013">2013</option>
				<option value="2014">2014</option>
			</select>
		</td>
	</tr>
	<tr>
		<td colspan="6" align="right"><input type="submit" value="Submit"></td>
	</tr>
</table>
</form>
<table class="table-display" id="main-table">
	<thead>
		<tr>
			<th rowspan="2"></th>
			<th rowspan="2">Kegiatan</th>
			<th rowspan="2">Output</th>
			<th rowspan="2">Sub-output</th>
			<th rowspan="2">Item kegiatan</th>
			<th colspan="2">Lokasi Detail</th>
			<th colspan="9">Usulan sumber pendanaan</th>
			<th rowspan="2">Readiness Criteria</th>
		</tr>
		<tr>
			<th>Kab/Kota</th>
			<th>Lokasi Rinci</th>
			<th class="small">APBN</th>
			<th class="small">Hibah</th>
			<th class="small">PLN</th>
			<th class="small">APBDI</th>
			<th class="small">APBDII</th>
			<th class="small">PDAM</th>
			<th class="small">Msyrkt</th>
			<th class="small">Swasta</th>
			<th class="small">DAK</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			</tr>
	</tbody>
</table>
